package com.ssy.lingxi.search.api.hystrix;

import com.ssy.lingxi.common.exception.BusinessException;
import com.ssy.lingxi.common.response.ResponseCode;
import com.ssy.lingxi.common.response.Wrapper;
import com.ssy.lingxi.search.api.feign.IOrderFeign;
import com.ssy.lingxi.search.api.model.request.OrderRequest;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * 订单服务-熔断服务实现类
 * @author jw.chen
 * @version 2.0.0
 * @date 2020/6/24
 */
@Component
@Qualifier("orderHystrix")
public class OrderHystrix implements IOrderFeign {
    @Override
    public Wrapper<List<Long>> getMemberIdList(OrderRequest orderRequest) {
        throw new BusinessException(ResponseCode.SERVICE_SEARCH_ERROR);
    }

//    @Override
//    public Wrapper<PageData<OrderMemberResponse>> searchCommodityList(Integer current, Integer pageSize, Long categoryId, List<CustomerAttributeRequest> customerAttributeList, String provinceCode, String cityCode) {
//        throw new BusinessException(ResponseCode.SERVICE_SEARCH_ERROR);
//    }
}
